package com.lhy.dao;

import com.lhy.domain.Doctors;
import com.lhy.utils.Pagination;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 汪
 */
@Repository
public interface DoctorDao {
    /**
     * 查询所有
     * @return
     */
    List<Doctors> showAllDoctors();

    /**
     * 通过科室号获取科室
     * @param departId
     * @return
     */
    String getDepartment(Integer departId);

    /**
     * 添加医生
     * @param doctors
     * @return
     */
    int addDoctor(Doctors doctors);

    /**
     * 删除
     * @param docId
     * @return
     */
    int deleteDoctor(Integer docId);

    /**
     * 批量修改
     * @param doctors
     * @return
     */
    int modifyDoctor(Doctors doctors);

    /**
     * 请确查找
     * @param doctors
     * @return
     */
    List<Doctors> findSomeDoctor(Doctors doctors);

    /**
     * 查询
     * @param docId
     * @return
     */
    Doctors getDoctorById(Integer docId);

    List<Doctors> findSomeDoctor1(Pagination<Doctors> page);

    Doctors getDoctorByName(String name);

    Doctors getDoctorByUserId(Integer id);
}
